-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image_types_qcom: create image-specific subfolders #122
base: main
Are you sure you want to change the base?
Conversation
This is based on the suggestion in #109 (comment) |
This is the layout I was thinking about, thanks for creating this PR! I'm not entirely convinced about the bbclass split, having a flashable image now requires inheriting 2 classes. Having the pkg bbclass inherit the other class automatically would help, but wouldn't help with backward compatibility. As much as I dislike to suggest it, having a single bbclass with a variable (e.g. QCOM_PKG_KEEP_FOLDER) controlling the deletion of the folder would give the least amount of surprises to existing users. If we decide that lack backwards compatibility is not a show stopper, we can keep the current split and avoid having more magic variables. |
Thanks for the PR, I haven't looked at it in details yet, but for sure we should not worry about backward compatibility at this point. Now is the right time to make drastic changes that we think are needed. |
ci/base.yml
Outdated
@@ -30,8 +30,8 @@ local_conf_header: | |||
INHERIT += "buildhistory" | |||
INHERIT += "rm_work" | |||
qcomflash: | | |||
IMAGE_CLASSES += "image_types_qcom" | |||
IMAGE_FSTYPES += "qcomflash" | |||
IMAGE_CLASSES += "image_types_qcom image_types_qcom_pkg" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
again, I haven't done a full review, and it's too late to do it in 2024 ;) but I think it would be better with a single class and fstype.
@ndechesne Please advise how that issue can be solved |
8745012
to
6aef6be
Compare
The new one line change looks good to me! |
This looks definitely neater :) One thing to discuss.. The OE way of doing these things, would be to have the folder name 'per build' e.g. core-image-base-qcs6490-rb3gen2-core-kit.20250110095603, and a symlink to the 'latest' build, to mimic how DEPLOY_DIR_IMAGE is typically managed. I am not sure it's needed.. but perhaps it's a good thing to keep a copy of previous build, so that we can flash back and forth things.. |
6aef6be
to
17e20ee
Compare
@ndechesne thanks for suggestion, added symlink creation so its now:
I've also dropped |
should we append qcomflash to the folder name (and symlink)? |
Create image-specific subfolder in DEPLOY_DIR_IMAGE besides qcomflash tarball archive. This allows to run QDL for device flashing on that folder directly for local builds. Signed-off-by: Igor Opaniuk <[email protected]>
17e20ee
to
fe6c1bd
Compare
I've sent a patch for fixing spdx box generator issues, that we are facing now with this change |
Create image-specific subfolder in DEPLOY_DIR_IMAGE besides qcomflash
tarball archive. This allows to run QDL for device flashing
on that folder directly for local builds.